<div class="container" style="border: 5px dashed #ddd;padding: 20px;margin-top: 100px;">
    <legend>注册</legend>

    <div class="form-group">
        <label for="user">账号</label>
        <input type="text" class="form-control" name="user" id="user" placeholder="请填写账号" onblur="isname($('#user').val(),0)" />
        <span name="alert"></span>
    </div>

    <div class="form-group">
        <label for="pasw">密码</label>
        <input type="password" class="form-control" name="pasw" id="pasw" placeholder="请填写密码" onblur="password($('#user').val(),$('#pasw').val(),1)" />
        <span name="alert"></span>
    </div>
    <button type="button" class="btn btn-primary" onclick="register($('#user').val(),$('#pasw').val())">注册</button>
    <button type="button" class="btn btn-primary" style="float: right" onclick="hrefs('index.php?c=user/login')">登陆</button>
</div>